﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Default.Master"
    CodeBehind="GaleriaDeFotos.aspx.vb" Inherits="ICLI.GaleriaDeFotos1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="../js/lightbox.css" rel="stylesheet" type="text/css" />

    <script src="../js/effects.js" type="text/javascript"></script>

    <script src="../js/scriptaculous.js?load=effects" type="text/javascript"></script>

    <script src="../js/lightbox.js" type="text/javascript"></script>

    <script src="../js/prototype.js" type="text/javascript"></script>

    <h2>
        Galeria de Fotos</h2>
    <table cellpadding="0" cellspacing="0" style="width: 100%" id="tbAlbum" runat="server">
        <tr>
            <td class="separador">
                <asp:Label ID="Label1" runat="server" CssClass="headerNoticia" Text="Escolha um Álbum de Fotos"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="txtIDAlbum" runat="server" Columns="6" CssClass="CaixaTexto" Visible="False"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:DataList ID="datalistAlbum" runat="server" CellPadding="4" CellSpacing="4" RepeatColumns="2"
                    Width="90%">
                    <ItemTemplate>
                        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td width="48">
                                    <asp:ImageButton ID="ImageButton1" runat="server" CommandName="select" ImageUrl='<%# "./thumbs.aspx?foto=" & eval("Link") %>'
                                        Width="48px" />
                                </td>
                                <td align="left">
                                    &nbsp;<asp:Label ID="Label3" runat="server" CssClass="textoNoticia" Text='<%# eval("Nome") %>'></asp:Label><asp:Label
                                        ID="lblID" runat="server" ForeColor="White" Text='<%# eval("IDAlbum") %>' Visible="False"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <SelectedItemStyle ForeColor="#E0E0E0" />
                </asp:DataList>
            </td>
        </tr>
    </table>
    <table id="tbFotos" runat="server" cellpadding="0" cellspacing="0" style="width: 100%"
        visible="false">
        <tr>
            <td align="center">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/imagens/Album.gif" />
                <br />
                <asp:Label ID="lblAlbum" runat="server" CssClass="textoNoticia"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="separador">
                <asp:Label ID="Label2" runat="server" CssClass="headerNoticia" Text="Foto(s) do Álbum selecionado."></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:DataList ID="DataListFotos" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
                    Width="90%">
                    <ItemTemplate>
                        <table style="width: 100%">
                            <tr>
                                <td align="center">
                                    <asp:HyperLink ID="hlFoto" runat="server" ImageUrl='<%# "./thumbs.aspx?foto=" & eval("Link") %>'
                                        ToolTip='<%# eval("Descricao") %>' NavigateUrl='<%# eval("Link") %>'
                                        rel="lightbox[lbtest]">
                                    </asp:HyperLink>
                                   </td>
                            </tr>
                            <tr>
                                <td align="center" valign="top">
                                    <asp:Label ID="Label10" runat="server" CssClass="textoNoticia" 
                                        Text='<%# eval("Descricao") %>'></asp:Label>
                                    <asp:Label ID="lblIDFoto" runat="server" ForeColor="White" 
                                        Text='<%# eval("IDFoto") %>' Visible="False"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnLimpar" runat="server" CssClass="botao" Text="Voltar" />
            </td>
        </tr>
        <tr>
            <td align="center" class="separador">
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
